import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

//引入vuex
import store from './store'
// 把vuex定义成全局组件
Vue.prototype.$store = store

// #ifdef MP-WEIXIN
// 微信转发混入
Vue.mixin(require('@/mixis/share.js'));
// #endif

import api from '@/common/api.js'
import {
	loginState
} from '@/common/login.js'
import {
	uniShowToast,
	uniShowLoading
} from '@/common/promise.js'

Vue.prototype.$api = api; // api        
Vue.prototype.$loginState = loginState; // 登录状态   


Vue.prototype.$showToast = uniShowToast; // uni.showToast 全局封装 
Vue.prototype.$ShowLoading = uniShowLoading; // uni.showLoading 全局封装 



const app = new Vue({
	...App,
})
app.$mount()
